.Net Framework > v2.0.50727 > System > Threading > Monitor > Wait Wait(Object)
Wait(Object,Int32)
Wait(Object,Int32,Boolean)
Wait(Object,TimeSpan)
Wait(Object,TimeSpan,Boolean)


Wait(Object)

Category
Method
Description
Releases the lock on an object and blocks the current thread until it reacquires the lock.
Type
Boolean
Character
public, static
Parameters
NameTypeDescription
objObject
Tags
01892ABD01, 02E3ABA98D, 0376596F91

Wait(Object,Int32)

Category
Method
Description
Releases the lock on an object and blocks the current thread until it reacquires the lock. If the specified time-out interval elapses, the thread enters the ready queue.
Type
Boolean
Character
public, static
Parameters
NameTypeDescription
objObject
millisecondsTimeoutInt32
Tags
01892ABD01, 02E3ABA98D, 0376596F91

Wait(Object,Int32,Boolean)

Category
Method
Description
Releases the lock on an object and blocks the current thread until it reacquires the lock. If the specified time-out interval elapses, the thread enters the ready queue. This method also specifies whether the synchronization domain for the context (if in a synchronized context) is exited before the wait and reacquired afterward.
Type
Boolean
Character
public, static
Parameters
NameTypeDescription
objObject
millisecondsTimeoutInt32
exitContextBoolean
Tags
01892ABD01, 02E3ABA98D, 0376596F91

Wait(Object,TimeSpan)

Category
Method
Description
Releases the lock on an object and blocks the current thread until it reacquires the lock. If the specified time-out interval elapses, the thread enters the ready queue.
Type
Boolean
Character
public, static
Parameters
NameTypeDescription
objObject
timeoutTimeSpan
Tags
01892ABD01, 02E3ABA98D, 0376596F91

Wait(Object,TimeSpan,Boolean)

Category
Method
Description
Releases the lock on an object and blocks the current thread until it reacquires the lock. If the specified time-out interval elapses, the thread enters the ready queue. Optionally exits the synchronization domain for the synchronized context before the wait and reacquires the domain afterward.
Type
Boolean
Character
public, static
Parameters
NameTypeDescription
objObject
timeoutTimeSpan
exitContextBoolean
Tags
01892ABD01, 02E3ABA98D, 0376596F91

Software for developers
.Net Components
Delphi Components
Software for Android Developers
More information resources
WinAPI Programmer's Reference
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database